package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteField;
import org.apache.commons.lang3.time.DateUtils;

public final class GDLadder {
    @NoteField("赛季周期")
    public static final long WHOLE_SEASON_MILLIS = DateUtils.MILLIS_PER_DAY * 7;
    @NoteField("刷新间隔")
    public static final long MIN_REFRESH_DURATION = DateUtils.MILLIS_PER_SECOND * 10;
    @NoteField("录像保存时间")
    public static final long REPLAY_KEEP_TIME = DateUtils.MILLIS_PER_HOUR;
    @NoteField("录像最大数量 之 玩家自身")
    public static int REPLAY_SIZE_MAX_MINE;
    @NoteField("录像最大数量 之 大神风采")
    public static int REPLAY_SIZE_MAX_DSFC;

    @NoteField("排行榜最大数量")
    public static int RANK_SIZE = 500;

    @NoteField("未上榜对应的排名")
    public static final int RANK_NO_NOT_IN_LIST = 0;

    public final class ReplayType {
        @NoteField("玩家")
        public static final byte MINE = 1;
        @NoteField("大神风采")
        public static final byte DSFC = 2;
    }

    public static void initialize(ParamSheet paramSheet) {
        REPLAY_SIZE_MAX_MINE = GDParamTool.getInt(paramSheet, 42002, 30);
        REPLAY_SIZE_MAX_DSFC = GDParamTool.getInt(paramSheet, 42001, 15);
    }
}
